package mvp.com.bbc.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.ResourceCursorAdapter;

import com.bumptech.glide.load.model.ModelCache;

/**
 * Created by Administrator on 2017/10/6.
 */

public abstract class CommonPager extends Fragment {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (savedInstanceState != null) {
            //初始化布局
            getlayout();
            //初始化id
            layoutId();
//         TextServicesManager getContext().getSystemService(Context.SEARCH_SERVICE);
            ModelCache modelCache =new ModelCache(10);
//            modelCache.put("");
        }
    }

    /**
     * 初始化布局
     */
    protected abstract int getlayout();
    /**
     * 初始化布局Id
     */
    protected abstract void layoutId();
}
